//
//  ProVincesModel.m
//  FastDoctor
//
//  Created by 程建良 on 16/7/7.
//  Copyright © 2016年 sc. All rights reserved.
//

#import "ProVincesModel.h"

@implementation ProVincesModel
+(instancetype)modelWithDic:(NSDictionary *)dic{
    ProVincesModel *model = [ProVincesModel new];
    [model setValuesForKeysWithDictionary:dic];
    return model;
}
+(NSArray<ProVincesModel*>*)listArray{
    NSString*path = [[NSBundle mainBundle]pathForResource:@"provinces.plist" ofType:nil];
    NSArray *array = [NSArray arrayWithContentsOfFile:path];
    NSMutableArray *marray = [NSMutableArray array];
    [array enumerateObjectsUsingBlock:^(id  _Nonnull obj, NSUInteger idx, BOOL * _Nonnull stop) {
        ProVincesModel *model = [ProVincesModel modelWithDic:obj];
        [marray addObject:model];
    }];
    return marray.copy;
}
@end
